package org.jeecg.modules.system.agreement.controller;

import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import lombok.extern.slf4j.Slf4j;
import org.jeecg.common.api.vo.Result;
import org.jeecg.modules.system.agreement.service.BikeAppAgreementService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * 月月鸟
 */
@Api(tags="app协议")
@RestController
@RequestMapping("/agreement/bikeAppAgreement")
@Slf4j
public class BikeAppAgreementController {
    @Autowired
    private BikeAppAgreementService bikeAppAgreementService;

    /**
     * 查询协议
     * @param code 协议号： 10001.用户协议 10002.隐私协议
     */
    @ApiOperation(value="查询协议：10001.用户协议，10002.隐私协议  10003.使用指南", notes="查询协议：10001.用户协议，10002.隐私协议  10003.使用指南")
    @GetMapping(value = "/getAppAgreement")
    public Result<?> getAppAgreement(String code) {
        return Result.OK(bikeAppAgreementService.getAppAgreement(code));
    }

    /**
     * 获取1
     */
    @ApiOperation(value="获取1", notes="获取1")
    @GetMapping(value = "/getOne")
    public Result<?> getOne() {
        return Result.OK("1");
    }

    /**
     * 获取0
     */
    @ApiOperation(value="获取0", notes="获取0")
    @GetMapping(value = "/getZero")
    public Result<?> getZero() {
        return Result.OK("0");
    }

}
